package eleventh.System类;

public class 取得本机的全部环境属性 {
    public static void main(String[] args) {
        System.getProperties().list(System.out);    //列出系统的全部属性
    }
}
/**
    为什么要用System.out将会在IO操作和类集部分详细解释
    部分属性说明：
 属性中有两点需要关注：
    ①文件默认编码：file.encoding=GBK
    ②文件分割符：file.separator=\
 这两个属性直接跟JavaIO的处理有关
 */
/*
D:\WorkSpaces\Java\jdk-21\bin\java.exe "-javaagent:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\lib\idea_rt.jar=53655:D:\Software\IntelliJ IDEA\IntelliJ IDEA 2023.3.2\bin" -Dfile.encoding=UTF-8 -Dsun.stdout.encoding=UTF-8 -Dsun.stderr.encoding=UTF-8 -classpath D:\WorkSpaces\JavaDevelopBase_start_329\out\production\JavaDevelopBase_start_329 eleventh.System类.取得本机的全部环境属性
-- listing properties --
java.specification.version=21
sun.cpu.isalist=amd64
sun.jnu.encoding=GBK
java.class.path=D:\WorkSpaces\JavaDevelopBase_start_3...
java.vm.vendor=Oracle Corporation
sun.arch.data.model=64
user.variant=
java.vendor.url=https://java.oracle.com/
java.vm.specification.version=21
os.name=Windows 11
sun.java.launcher=SUN_STANDARD
user.country=CN
sun.boot.library.path=D:\WorkSpaces\Java\jdk-21\bin
sun.java.command=eleventh.System类.取得本机的全部环境属性
jdk.debug=release
sun.cpu.endian=little
user.home=C:\Users\Odyssey
user.language=zh
sun.stderr.encoding=UTF-8
java.specification.vendor=Oracle Corporation
java.version.date=2024-01-16
java.home=D:\WorkSpaces\Java\jdk-21
file.separator=\
java.vm.compressedOopsMode=32-bit
sun.stdout.encoding=UTF-8
line.separator=

java.vm.specification.vendor=Oracle Corporation
java.specification.name=Java Platform API Specification
user.script=
sun.management.compiler=HotSpot 64-Bit Tiered Compilers
java.runtime.version=21.0.2+13-LTS-58
user.name=Odyssey
stdout.encoding=UTF-8
path.separator=;
os.version=10.0
java.runtime.name=Java(TM) SE Runtime Environment
file.encoding=UTF-8
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.vendor.url.bug=https://bugreport.java.com/bugreport/
java.io.tmpdir=C:\Users\Odyssey\AppData\Local\Temp\
java.version=21.0.2
user.dir=D:\WorkSpaces\JavaDevelopBase_start_329
os.arch=amd64
java.vm.specification.name=Java Virtual Machine Specification
sun.os.patch.level=
native.encoding=GBK
java.library.path=D:\WorkSpaces\Java\jdk-21\bin;C:\WIND...
java.vm.info=mixed mode, sharing
stderr.encoding=UTF-8
java.vendor=Oracle Corporation
java.vm.version=21.0.2+13-LTS-58
sun.io.unicode.encoding=UnicodeLittle
java.class.version=65.0

Process finished with exit code 0

 */